package com.yiban.demo.ShuoShuo.Service;

import com.yiban.demo.ShuoShuo.Entity.ShuoShuo;
import com.yiban.demo.ShuoShuo.Entity.ShuoShuoComment;
import com.yiban.demo.ShuoShuo.Entity.TotalShuoShuo;

import java.util.List;

public interface ShuoShuoService {
    boolean publishShuoShuo(ShuoShuo shuoShuo);


    void starShuoShuo(Integer shuoshuoId, Integer userId);


    boolean cancelStar(Integer shuoshuoId, Integer userId);

    boolean publishShuoShuoComment(ShuoShuoComment shuoShuoComment,Integer userId);
    List<TotalShuoShuo> getTotalShuoShuo(int current,int size);
    List<ShuoShuo> getShuoShuo(int current,int size);

    List<ShuoShuo> getByTime(long start, long end, long current, long size);

    List<ShuoShuo> getByStarCount(long current, long size);
}
